package com.tsing.spring_learn.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

@Component

public class User {

    private String name = "张三";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public User() {
        System.out.println(" User no args  starting ");

    }

    public User(String name) {
        this.name = name;
        System.out.println(" User  args  starting ");
    }
}
